package com.guli.eduService.client;

import com.guli.commonutils.orderVo.UcenterMemberOrder;
import com.guli.eduService.client.impl.UcenterClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient(name = "service-ucenter", fallback = UcenterClientImpl.class)
public interface UcenterClient {

    @PostMapping("/educenter/member/getUserInfoOrder/{memberId}")
    public UcenterMemberOrder getMemberInfoById(@PathVariable String memberId);
}